export default class ObservableInterfaceBuilder {
  registration: any
  constructor(t) {
    this.registration = t
  }
  build(t) {
    const e = {}
    for (const s of Object.keys(t)) {
      const i = t[s]
      if (i) {
        const t = e[i.namespace] || {}
        ;(e[i.namespace] = t), (t[i.name] = this.registration.register(s, i.objectFactory))
      }
    }
    return e
  }
}
